import pandas as pd

import PD.PdUtil
import 小区健康度.Batch as Batch

if __name__ == '__main__':
    path = r"D:\网管\output_202507.csv"
    df = pd.read_csv(path)
    filter = df[df["avg_power"] < -27]
    PD.PdUtil.to_csv(fr"D:\网管\弱光\{Batch.batch}平均弱光.csv", filter)
    filter = df[df["low_power_count"] > 6]["SN"]
    PD.PdUtil.to_csv(fr"D:\网管\弱光\{Batch.batch}弱光异常.csv", filter)
